﻿using System;
using JyCommonKit.FileKit;

namespace JyCommonKit.Examples
{
    class TestFileHelper
    {
        private void Test()
        {
            var actionSuccess = FileHelper.SaveTextFile(".", "TestFile", "TestFileHelper");
            if (actionSuccess)
            {
                Console.WriteLine("保存成功!");
            }
            else
            {
                Console.WriteLine("保存失败!");
            }


            var content = FileHelper.ReadTextFile(".", "TestFile");
            Console.WriteLine($"读取内容是: {content}");
        }

    }
}
